package dat02;

public class Test02 {
    public static void main(String[] args) {
        String str = "123,456,789,012";
        String[] arr = str.split(",");
        for (String s : arr){
            System.out.println(s);
        }
    }
}
/**
 * 将字符串123,456,789,012根据","拆分，并输出拆分后的每一项
 * @author Admin
 *
 */
